<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFrameworks>$(NetCoreAppCurrent);$(NetCoreAppCurrent)-browser</TargetFrameworks>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
    <UseCompilerGeneratedDocXmlFile>false</UseCompilerGeneratedDocXmlFile>
  </PropertyGroup>

  <PropertyGroup>
    <TargetPlatformIdentifier>$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)'))</TargetPlatformIdentifier>
    <GeneratePlatformNotSupportedAssemblyMessage Condition="'$(TargetPlatformIdentifier)' == 'browser'">SR.SystemNetWebClient_PlatformNotSupported</GeneratePlatformNotSupportedAssemblyMessage>
  </PropertyGroup>

  <ItemGroup Condition="'$(TargetPlatformIdentifier)' != 'browser'">
    <Compile Include="System\Net\WebClient.cs" />
    <Compile Include="$(CommonPath)System\IO\DelegatingStream.cs"
             Link="Common\System\IO\DelegatingStream.cs" />
    <Compile Include="$(CommonPath)System\IO\ChunkedMemoryStream.cs"
             Link="Common\System\IO\ChunkedMemoryStream.cs" />
    <Compile Include="$(CommonPath)System\Threading\Tasks\BeginEndAwaitableAdapter.cs"
             Link="Common\System\Threading\Tasks\BeginEndAwaitableAdapter.cs" />
    <Compile Include="$(CommonPath)System\Threading\Tasks\RendezvousAwaitable.cs"
             Link="Common\System\Threading\Tasks\RendezvousAwaitable.cs" />
    <Compile Include="$(CommonPath)System\Net\HttpKnownHeaderNames.cs"
             Link="Common\System\Net\HttpKnownHeaderNames.cs" />
    <Compile Include="$(CommonPath)System\HexConverter.cs"
             Link="Common\System\HexConverter.cs" />
  </ItemGroup>

  <ItemGroup>
    <Compile Include="$(CommonPath)System\Obsoletions.cs"
             Link="Common\System\Obsoletions.cs" />
    <Reference Include="System.Collections.Specialized" />
    <Reference Include="System.ComponentModel.EventBasedAsync" />
    <Reference Include="System.ComponentModel.Primitives" />
    <Reference Include="System.Memory" />
    <Reference Include="System.Net.Primitives" />
    <Reference Include="System.Net.Requests" />
    <Reference Include="System.Net.WebHeaderCollection" />
    <Reference Include="System.Runtime" />
    <Reference Include="System.Memory" />
    <Reference Include="System.Threading" />
    <Reference Include="System.Web.HttpUtility" />
  </ItemGroup>

</Project>
